# -*- coding: iso-8859-1 -*-
"""
@newfield project: Project 
@project: yatter
@newfield description: Description 
@description: Twitter Client, based on Python 2.5

@Author: U{Andreas del Galdo<mailto:andreas.delgaldo@mac.com>}
@summary: Parses the JSON-String receiving from the Twitter-Service.
"""

import simplejson
import logging

def parseTweets(handler):
    try:
        logging.debug("tools.json_parser.parseTweets()")
        feed = handler.read()
        handler.close()
        
        tweets = simplejson.loads(feed)

        return tweets       
    except:
        logging.error("tools.json_parser.parseTweets()::ERROR")
        return False